//
//  AdvDetailViewController.m
//  LoveDraw
//
//  Created by 零零壹 on 2017/7/10.
//  Copyright © 2017年 梁晨. All rights reserved.
//

#import "AdvDetailViewController.h"

@interface AdvDetailViewController ()
@property(nonatomic,strong)UIWebView *WebV;
@end

@implementation AdvDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationItem.title = @"公告详情";
    [self Request];
}

-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.navigationItem.title = @"公告详情";
    self.navigationController.navigationBar.hidden = NO;
    [self.navigationController setNavigationBarHidden:NO animated:YES];
}

-(void)Request
{
    self.WebV = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, KscreenW, KscreenH)];
    [self.view addSubview:self.WebV];

    [self.WebV loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/index.php?g=App&m=Index&a=noticeDetail&aid=%@&uid=%@",KUrl,self.aid,[[NSUserDefaults standardUserDefaults]objectForKey:kUserId]]]]];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
